import 'package:flutter/material.dart';
import 'package:get/get.dart';
import '../../pages/index.dart';
import '../index.dart';
import 'observers.dart';

// ignore_for_file: prefer_const_constructors

///
///Author: YYF
///Date: 2022-02-06 16:45:11
///Description:
///

class AppPages {
  // ignore: constant_identifier_names
  static const INITIAL = AppRoutes.INITIAL;
  static final RouteObserver<Route> observer = RouteObservers();
  static List<String> history = [];

  static final List<GetPage> routes = [
    GetPage(
      name: AppRoutes.INITIAL,
      page: () => ApplicationPage(),
      transition: Transition.topLevel,
      // curve: Curves.easeIn,
      middlewares: [
        RouteAuthMiddleware(priority: 0),
      ],
    ),
    GetPage(
      name: AppRoutes.LOGIN,
      page: () => LoginPage(),
      binding: LoginBinding(),
      transition: Transition.downToUp,
      // curve: Curves.easeIn
      // transition: Transition.cupertinoDialog,
    ),

    GetPage(
      name: AppRoutes.WEBVIEW,
      page: () => WebViewPage(),
    ),
    //discover
  ];
}
